package com.lai.gulimall.ware.fegin;


import com.lai.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-product")
public interface ProductFeignService {


    //远程调用 1、路径名     2、请求方式   3、@RequestBody    4、参数一样
    @PostMapping("/product/skuinfo/info")
    R queryInfoById(@RequestBody Long skuId);

}
